package com.snake.springboot.authority.dao.mybatis.mappers;

import com.snake.springboot.authority.dao.mybatis.entity.AuthSysAdminDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AuthSysAdminMapper {
    
    int delete(String sysAdminId);

    int insert(AuthSysAdminDO record);

    int update(AuthSysAdminDO record);

    int updateEnable(AuthSysAdminDO record);

    int updateDefaultFlag(AuthSysAdminDO record);

    int updatePassword(AuthSysAdminDO record);

    AuthSysAdminDO findById(String sysAdminId);

    AuthSysAdminDO findByAccount(String sysAdminAccount);

    AuthSysAdminDO findSameByAccount(AuthSysAdminDO record);

    List<AuthSysAdminDO> findByCondition(AuthSysAdminDO condition);
}